/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.thinkgem.jeesite.modules.house.service;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.BaseService;
import com.thinkgem.jeesite.common.utils.StringUtils;
import com.thinkgem.jeesite.modules.house.dao.RegionDao;
import com.thinkgem.jeesite.modules.house.dao.ReportDao;
import com.thinkgem.jeesite.modules.house.dao.XiaoquDao;
import com.thinkgem.jeesite.modules.house.entity.Region;
import com.thinkgem.jeesite.modules.house.entity.Report;
import com.thinkgem.jeesite.modules.house.entity.Xiaoqu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 请假Service
 * @author liuj
 * @version 2013-04-05
 */
@Service
@Transactional(readOnly = true)
public class ReportService extends BaseService {

	@Autowired
	private ReportDao reportDao;

	@Autowired
	private RegionDao regionDao;

	public List<Report> getByXiaoquBianhao(String bianhao) {

		return reportDao.getByXiaoquBianhao(bianhao);
	}

	public List<Report> getByXiaoquName(String name) {
		return reportDao.getByXiaoquName("%"+name+"%");
	}

	public List<Report> getByRegionb(String name) {
		return reportDao.getByRegionb(name);
	}

	public List<Report> getByRegions(String name) {
		return reportDao.getByRegions(name);
	}

	public List<Report> getAllData() {
		return reportDao.getAlldata();
	}

	public List<Region> getRegions(String regionname) {
		return regionDao.getRegions(regionname);
	}

	public List<Region>  getRegionb() {
		return regionDao.getAllRegionb();
	}
}
